const proxy = require("http-proxy-middleware")

module.exports = function(app) {
  app.use(
    proxy("/api/", {
      target: "https://www.okzpps.com/",
      changeOrigin: true
    })
  )
  app.use(
    proxy("/zh-cn/", {
      target: "http://xj-sb-asia-mrball.prdasbbwla1.com/",
      changeOrigin: true
    })
  )
}
